Home | Rules | Authors | Mailing lists | Menus and hot keys | Network game | Command line parameters | Platform specific issues | User levels | Core algorithm | Source code | Bugs | To do | Copying

Command line parameters


Introduction

When you launch Liquid War 5, you can use command line options. If you have no problems launching Liquid War, this section should not interest you very much.

You can use several options at the same time. The basic syntax for options looks like this:

lw -option1 -option2 parameter2 -option3 parameter3 -option4 -option5

Note that most of the options are legacy options which where usefull with the initial releases of Liquid War, when you had to run in a Windows DOS box, and when there were still plenty of 486 computers with only 8Mb ram...


Version checking

These are basic options which can be usefull to figure out which release of Liquid War is installed.


Changing default paths

Very usefull options, especially if you can not install Liquid War in default directories or want to put the game in a special place.


Troubleshooting switches

These options give you control on how Liquid War treats initialisation errors, how much memory it should reserve, what kind of video mode sit should not choose etc...


Debug options

These options are usefull if you want to debug the game and trace what's happening.


Server options

The server command line options are described in the section which deals which network games in general. IMHO you need to understand how network works in LW before trying to tweak the server 8-)


Other options

Everything else 8-)


lwmapgen options

The external lwmapgen program by David Redick accepts a number of command line options. You can type:

liquidwar-mapgen --help

to get a list of all available options under UNIX. Under Windows the command would be:

lwwinmap --help

Note that lwmapgen is called automatically by Liquid War when you click on the "Random map" button.

The idea behind lwmapgen is that you choose a function which sets the type of map generated, and then pass various arguments to this function. If you do not explicitly choose a function, one will be picked up for you randomly, and all other parameters will use default values.

The most usefull and common options are:

Here's a typical use of lwmapgen:

liquidwar-mapgen --size 3 --function hole --out test.bmp

This documentation is also available on: www.ufoot.org/liquidwar.